﻿<UserControl x:Class="QLab.UserControls.RibbonView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 mc:Ignorable="d" >
	<ribbon:Ribbon IsMinimized="False" Title="QLab">
		<ribbon:Ribbon.QuickAccessToolBar>
			<ribbon:RibbonQuickAccessToolBar>
				<ribbon:RibbonButton Command="{Binding Path=TabController.UndoCommand}" SmallImageSource="/QLab;component/Images/Action_undo_16x16.png" />
				<ribbon:RibbonButton Command="{Binding Path=TabController.RedoCommand}" SmallImageSource="/QLab;component/Images/Action_redo_16x16.png" />
			</ribbon:RibbonQuickAccessToolBar>
		</ribbon:Ribbon.QuickAccessToolBar>
		<!--Application menu-->
		<ribbon:Ribbon.ApplicationMenu>
			<ribbon:RibbonApplicationMenu>
				<ribbon:RibbonApplicationMenuItem Header="New Solution" x:Name="ramiNewSolution" Command="{Binding Path=CreateSolutionCommand}" ImageSource="/QLab;component/Images/Action_new_solution_32x32.png" />
				<ribbon:RibbonApplicationMenuItem Header="Open Solution" x:Name="ramiOpenSolution" Command="{Binding Path=OpenSolutionCommand}" ImageSource="/QLab;component/Images/Action_solution_open_32x32.png" />
					<!-- ribbon:RibbonApplicationMenuItem Header="Project" x:Name="ramiOpenProject" Click="ramiOpenProject_OnClick"/>
					<ribbon:RibbonApplicationMenuItem Header="File" />
				</ribbon:RibbonApplicationMenuItem -->
				<ribbon:RibbonApplicationMenuItem Header="Save" IsEnabled="False" />
				<!-- ribbon:RibbonApplicationSplitMenuItem Header="Save As">
					<ribbon:RibbonApplicationMenuItem Header="QLab File" />
					<ribbon:RibbonApplicationMenuItem Header="M File" />
				</ribbon:RibbonApplicationSplitMenuItem -->

				<ribbon:RibbonSeparator />

				<ribbon:RibbonApplicationMenuItem Header="Close" IsEnabled="False" />

				<!--Buttons in the bottom of the menu-->
				<ribbon:RibbonApplicationMenu.FooterPaneContent>
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition />
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<ribbon:RibbonButton Grid.Column="1" Label="QLab Preferences" IsEnabled="False" 
											 SmallImageSource="/QLab;component/Images/Package_settings_16x16.png" />
						<ribbon:RibbonButton Grid.Column="2" Label="Exit" x:Name="ramiExit" Command="{Binding Path=CloseApplicationCommand}"
											 SmallImageSource="/QLab;component/Images/Action_exit_16x16.png" />
					</Grid>
				</ribbon:RibbonApplicationMenu.FooterPaneContent>
			</ribbon:RibbonApplicationMenu>            
		</ribbon:Ribbon.ApplicationMenu>
		
		<!--Tabovi-->
		<ribbon:RibbonTab Header="Home" IsSelected="True">
			<ribbon:RibbonGroup Header="Project">
				<ribbon:RibbonButton Label="New Solution" LargeImageSource="/QLab;component/Images/Action_new_solution_32x32.png" Command="{Binding Path=CreateSolutionCommand}" />
				<ribbon:RibbonButton Label="Open Solution" LargeImageSource="/QLab;component/Images/Action_solution_open_32x32.png" Command="{Binding Path=OpenSolutionCommand}" />
				<ribbon:RibbonButton Label="New File" LargeImageSource="/QLab;component/Images/Action_add_file_32x32.png" Command="{Binding Path=SolutionExplorerController.NewFileCommand}" Content="New File"  ToolTip="Create new file" />
			</ribbon:RibbonGroup>
			<ribbon:RibbonGroup Header="Files">
				<ribbon:RibbonButton Label="Save" LargeImageSource="/QLab;component/Images/Action_save_32x32.png" ToolTip="Save current document" Command="{Binding Path=TabController.CurrentTabSaveCommand}" />
				<ribbon:RibbonButton Label="Save All" LargeImageSource="/QLab;component/Images/Action_save_32x32.png" ToolTip="Save current document" Command="{Binding Path=TabController.SaveAllCommand}" />
			</ribbon:RibbonGroup>
			<ribbon:RibbonGroup Header="Clipboard">
				<ribbon:RibbonButton Label="Cut" LargeImageSource="/QLab;component/Images/Action_editcut_32x32.png" ToolTip="Cut to clipboard" Command="{Binding Path=TabController.CutCommand}" />
				<ribbon:RibbonButton Label="Copy" LargeImageSource="/QLab;component/Images/Action_editcopy_32x32.png" ToolTip="Copy to clipboard" Command="{Binding Path=TabController.CopyCommand}" />
				<ribbon:RibbonButton Label="Paste" LargeImageSource="/QLab;component/Images/Action_editpaste_32x32.png" ToolTip="Paste from clipboard" Command="{Binding Path=TabController.PasteCommand}" />
			</ribbon:RibbonGroup>
		</ribbon:RibbonTab>
		
		<ribbon:RibbonTab Header="Development">
			<ribbon:RibbonGroup Header="Debug">
				
			</ribbon:RibbonGroup>
		</ribbon:RibbonTab>
	</ribbon:Ribbon>
</UserControl>
